#!/bin/sh

echo
echo 'No automated evaluation this time. Just look at the'
echo 'output manually. The questions stated below'
echo 'are guidelines; it is possible that a correct'
echo 'solution will have unexpected results. That said, it'
echo 'may be more likely that unexpected results are reflecting'
echo 'a bug -- check and document any discrepencies'
echo 'in the README. You may want to try compiling'
echo 'with verbose on in the test programs.'
echo 'You may want to run these tests multiple times.'
echo

echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test1... 
./test1
echo  Do you see maxEating = 5
echo Does throughput stay high throughout the test?
echo Does everyone eat every second?
echo '-------------------------------------------'
echo '-------------------------------------------'
echo
echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test1... 
./test1
echo  Do you see maxEating near 5?
echo Does throughput stay high throughout the test?
echo Does everyone eat every second?
echo '-------------------------------------------'
echo '-------------------------------------------'
echo



echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test 2...
./test2
echo  Do you see maxEating above 1 or 2?
echo Does throughput stay high throughout the test?
echo How much throughput was lost compared to test 1?
echo Does everyone eat similar amounts every second?
echo Does cleaning happen at least a few times a second?
echo '-------------------------------------------'
echo '-------------------------------------------'

echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test 2...
./test2
echo  Do you see maxEating above 1 or 2?
echo Does throughput stay high throughout the test?
echo How much throughput was lost compared to test 1?
echo Does everyone eat similar amounts every second?
echo Does cleaning happen at least a few times a second?
echo '-------------------------------------------'
echo '-------------------------------------------'

echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test 2... randomize
./test2 324
echo  Do you see maxEating above 1 or 2?
echo Does throughput stay high throughout the test?
echo How much throughput was lost compared to test 1?
echo Does everyone eat similar amounts every second?
echo Does cleaning happen at least a few times a second?
echo '-------------------------------------------'
echo '-------------------------------------------'

echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test 2... randomize
./test2 `date +%s`
echo  Do you see maxEating above 1 or 2?
echo Does throughput stay high throughout the test?
echo How much throughput was lost compared to test 1?
echo Does everyone eat similar amounts every second?
echo Does cleaning happen at least a few times a second?
echo '-------------------------------------------'
echo '-------------------------------------------'

echo '-------------------------------------------'
echo '-------------------------------------------'
echo Test 2... randomize + bliss
./test2 `date +%s` 234
echo  Do you see maxEating above 1 or 2?
echo Does throughput stay high throughout the test?
echo How much throughput was lost compared to test 1?
echo Does everyone eat similar amounts every second?
echo How does the consumption of the blissful philosophers compare to the others?
echo Does cleaning happen at least a few times a second?
echo '-------------------------------------------'
echo '-------------------------------------------'

